#include <iostream>
#include "LEngine.h"

int main()
{
    Application *app = Singleton<Application>::getInstance();
    app->init();

    //Sprite
    Sprite2D *sprite = new Sprite2D("texture/container.jpg");
    sprite->setPosition(glm::vec3(-230.0f / app->getResolutionX(), 0.0f / app->getResolutionY(), 0.0f));
    sprite->setRotation(glm::vec3(0.0f, 0.0f, -60.0f));
    app->getStage()->addChild(sprite);

    Sprite2D *sprite2D = new Sprite2D("texture/container.jpg");
    sprite2D->setPosition(glm::vec3(230.0f / app->getResolutionX(), 0.0f / app->getResolutionY(), 0.0f));
    sprite2D->setRotation(glm::vec3(0.0f, 0.0f, 60.0f));
    app->getStage()->addChild(sprite2D);

    app->run();
    return 0;
}